import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Main {
    public static void main(String[] args) {
       try {
           String name = "main";
           int password = 1234;
           System.out.println("请输入用户名：");
           Scanner scan = new Scanner(System.in);
           String pname = scan.nextLine();
           System.out.println("请输入密码：");

           int pword = scan.nextInt();
           System.out.println("最后代码");
       }catch( PasswordException e){
            throw new UserNameException("用户名错误") ;
        }catch (Exception e){

       }

    }
}